import request from '@/utils/request';

/**
 * 获取配置
 * @param {Number} sid
 * @return {void}
 */
export function get(sid) {
  return request({
    url: '/txs/cfg/clerk_grade',
    method: 'get',
    params: { sid },
  });
}

/**
 * 修改配置
 * @param {Object} cfg
 * @return {void}
 */
export function update(cfg) {
  return request({
    url: '/txs/cfg/clerk_grade',
    method: 'put',
    data: cfg,
  });
}
